<?php
/**
 * @version     1.0.1
 * @package     com_ganeshavereadores
 * @copyright  	
 * @license     
 * @author      Jorge Eduardo
 */
// No direct access to this file
defined('_JEXEC') or die('Restricted access');

JHtml::_('behavior.tooltip');
JHtml::_('behavior.formvalidation');
JHtml::_('behavior.keepalive');

?>

<div class="container vereadores">
<h3><?php echo $this->escape($this->params->get('page_heading')); ?></h3>

<div id="menuinterno"></div>


<h4><?php echo $this->escape($this->params->get('page_heading')); ?></h4>
<ul class="content">
	<?php foreach ($this->items as $item) : ?>

            
<?php
	if($item->state == 1 || ($item->state == 0 && JFactory::getUser()->authorise('core.edit.own',' com_vereadores.vereador.'.$item->id))):
		$show = true;
		?>
	<li>
		<a href="<?php echo JRoute::_('index.php?option=com_ganeshavereadores&view=vereador&id=' . (int)$item->id); ?>" title="<?php echo $item->nome;?>"><?php echo $item->nome; ?> - <?php echo $item->partido; ?> </a> 
	</li>
<?php endif; ?>

<?php endforeach; ?>
</ul>
</div>